<template>
    <div class="box">
        <div id="box"></div>
    </div>
</template>
<script>
export default {
    data(){
        return{
            title:'设置家的地址'
        }
    },
    mounted(){
        this.$emit('toparent',this.title),
        this.$emit('toparent',this.title)
        var map = new AMap.Map('box', {
        zoom:11,//级别
        center: [116.397428, 39.90923],//中心点坐标
        viewMode:'3D'//使用3D视图
    });
      },
      methods:{
          onClickright(){
            this.$router.go(-1)//直接写的话会报没有引入路由的错,要加this.$
                },
        
      }
}
</script>
<style>
.box{margin-top: 0rem}
#box{
    height:16.5rem;
}
</style>